/*
Copyright (C) 1997-2001 Id Software, Inc.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  

See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/

// Created on 31.10.2003 by RST.
// $Id: spawn_temp_t.java,v 1.1.1.1 2004/07/07 19:59:26 hzi Exp $
using System;
using Suake2.UI.util;
namespace Suake2.UI.game
{
	
	public class spawn_temp_t
	{
		// world vars
		public System.String sky = "";
		public float skyrotate;
		public float[] skyaxis = new float[]{0, 0, 0};
		
		public System.String nextmap = "";
		
		public int lip;
		public int distance;
		public int height;
		
		public System.String noise = "";
		public float pausetime;
		
		public System.String item = "";
		public System.String gravity = "";
		
		public float minyaw;
		public float maxyaw;
		public float minpitch;
		public float maxpitch;
		
		public virtual bool set_Renamed(System.String key, System.String value_Renamed)
		{
			if (key.Equals("lip"))
			{
				lip = Lib.atoi(value_Renamed);
				return true;
			} // F_INT, FFL_SPAWNTEMP),
			
			if (key.Equals("distance"))
			{
				distance = Lib.atoi(value_Renamed);
				return true;
			} // F_INT, FFL_SPAWNTEMP),
			
			if (key.Equals("height"))
			{
				height = Lib.atoi(value_Renamed);
				return true;
			} // F_INT, FFL_SPAWNTEMP),
			
			if (key.Equals("noise"))
			{
				noise = GameSpawn.ED_NewString(value_Renamed);
				return true;
			} // F_LSTRING, FFL_SPAWNTEMP),
			
			if (key.Equals("pausetime"))
			{
				pausetime = Lib.atof(value_Renamed);
				return true;
			} // F_FLOAT, FFL_SPAWNTEMP),
			
			if (key.Equals("item"))
			{
				item = GameSpawn.ED_NewString(value_Renamed);
				return true;
			} // F_LSTRING, FFL_SPAWNTEMP),
			
			if (key.Equals("gravity"))
			{
				gravity = GameSpawn.ED_NewString(value_Renamed);
				return true;
			} // F_LSTRING, FFL_SPAWNTEMP),
			
			if (key.Equals("sky"))
			{
				sky = GameSpawn.ED_NewString(value_Renamed);
				return true;
			} // F_LSTRING, FFL_SPAWNTEMP),
			
			if (key.Equals("skyrotate"))
			{
				skyrotate = Lib.atof(value_Renamed);
				return true;
			} // F_FLOAT, FFL_SPAWNTEMP),
			
			if (key.Equals("skyaxis"))
			{
				skyaxis = Lib.atov(value_Renamed);
				return true;
			} // F_VECTOR, FFL_SPAWNTEMP),
			
			if (key.Equals("minyaw"))
			{
				minyaw = Lib.atof(value_Renamed);
				return true;
			} // F_FLOAT, FFL_SPAWNTEMP),
			
			if (key.Equals("maxyaw"))
			{
				maxyaw = Lib.atof(value_Renamed);
				return true;
			} // F_FLOAT, FFL_SPAWNTEMP),
			
			if (key.Equals("minpitch"))
			{
				minpitch = Lib.atof(value_Renamed);
				return true;
			} // F_FLOAT, FFL_SPAWNTEMP),
			
			if (key.Equals("maxpitch"))
			{
				maxpitch = Lib.atof(value_Renamed);
				return true;
			} // F_FLOAT, FFL_SPAWNTEMP),
			
			if (key.Equals("nextmap"))
			{
				nextmap = GameSpawn.ED_NewString(value_Renamed);
				return true;
			} // F_LSTRING, FFL_SPAWNTEMP),
			
			return false;
		}
	}
}